<style>
    .input-text {
        font-size: 12px;
        color: #018bef;
        text-align: left;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Table')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-table" data-rule="required" data-live-search="true" class="form-control selectpicker"  name="row[table]">
                {foreach name="tableList" item="vo"}
                <option value="{$vo.name}" data-content="{$vo.name}<span style='float:right'> {$vo.comments}</span>"></option>
                {/foreach}
            </select>
            <div class="form-group input-text">
                <div class="col-xs-12 col-sm-12">
                    表名就是需要替换或关联关键字的文章所储存在数据库中的表，并且是对应控制器的模型对象。
                </div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Field')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-field" data-rule="required" data-live-search="true" class="form-control selectpicker"  name="row[field]">
                {foreach name="fieldList['field']" item="vo"}
                <option value="{$vo.name}" data-content="{$vo.name}<span style='float:right'> {$vo.comments}</span>"></option>
                {/foreach}
            </select>
            <div class="form-group input-text">
                <div class="col-xs-12 col-sm-12">
                    字段就是我们在表单提交数据时候的字段,也是数据库表中存储文章的字段。
                </div>
            </div>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="markList" item="vo"}
                <label for="row[mark]-{$key}"><input id="row[mark]-{$key}" name="row[mark]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
            <div class="form-group input-text">
                <div class="col-xs-12 col-sm-12">
                    字段标识就是表单提交的数据采用了何种方式,默认为FastAdmin的方式(row[field])，单一的方式则是直接采用field。
                </div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Action')}:</label>
        <div id="action" class="col-xs-12 col-sm-8">
            <select id="c-action" data-rule="required" data-actions-box='true' data-select-all-text="全选"  data-deselect-all-text="取消全选"  data-live-search="true" multiple class="form-control selectpicker"  name="row[action][]">
                {foreach name="fieldList['action']" item="vo"}
                <option value="{$vo->name}">{$vo->name}</option>
                {/foreach}
            </select>
            <div class="form-group input-text">
                <div class="col-xs-12 col-sm-12">
                    生效方法就是在执行控制器的何种操作时对表单提交的数据替换和筛选,
                    默认FastAdmin生成的是add和edit方法
                </div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addmark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-10" style="padding-left: 0px;">
                <input id="c-addmark" class="form-control" name="row[addmark]" type="text" value="">
            </div>
            <div class="col-xs-2 col-sm-2" style="padding: 0px;">
                <button id="mark" type="button" class="btn btn-warning">添加</button>
            </div>
            <div class="form-group input-text">
                <div class="col-xs-12 col-sm-12">
                    如果不使用FastAdmin生成的方法,则
                    在"增加生效方法"中输入使用的方法名然后点击添加。
                </div>
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">

        <div class="col-xs-12 col-sm-12" style="text-align: center">

            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>

</form>
